{"ast":null,"code":"import \"./utils/assertEnvironment\";\nimport { unstable_batchedUpdates as batch } from \"./utils/reactBatchedUpdates\";\nimport { observerBatching } from \"./utils/observerBatching\";\nimport { useDeprecated } from \"./utils/utils\";\nimport { useObserver as useObserverOriginal } from \"./useObserver\";\nimport { enableStaticRendering } from \"./staticRendering\";\nobserverBatching(batch);\nexport { isUsingStaticRendering, enableStaticRendering } from \"./staticRendering\";\nexport { observer } from \"./observer\";\nexport { Observer } from \"./ObserverComponent\";\nexport { useLocalObservable } from \"./useLocalObservable\";\nexport { useLocalStore } from \"./useLocalStore\";\nexport { useAsObservableSource } from \"./useAsObservableSource\";\nexport { resetCleanupScheduleForTests as clearTimers } from \"./utils/reactionCleanupTracking\";\nexport function useObserver(fn, baseComponentName) {\n  if (baseComponentName === void 0) {\n    baseComponentName = \"observed\";\n  }\n  if (\"production\" !== process.env.NODE_ENV) {\n    useDeprecated(\"[mobx-react-lite] 'useObserver(fn)' is deprecated. Use `<Observer>{fn}</Observer>` instead, or wrap the entire component in `observer`.\");\n  }\n  return useObserverOriginal(fn, baseComponentName);\n}\nexport { isObserverBatched, observerBatching } from \"./utils/observerBatching\";\nexport function useStaticRendering(enable) {\n  if (\"production\" !== process.env.NODE_ENV) {\n    console.warn(\"[mobx-react-lite] 'useStaticRendering' is deprecated, use 'enableStaticRendering' instead\");\n  }\n  enableStaticRendering(enable);\n}","map":{"version":3,"mappings":"AAAA,OAAO,2BAA2B;AAElC,SAASA,uBAAuB,IAAIC,KAAK,QAAQ,6BAA6B;AAC9E,SAASC,gBAAgB,QAAQ,0BAA0B;AAC3D,SAASC,aAAa,QAAQ,eAAe;AAC7C,SAASC,WAAW,IAAIC,mBAAmB,QAAQ,eAAe;AAClE,SAASC,qBAAqB,QAAQ,mBAAmB;AAEzDJ,gBAAgB,CAACD,KAAK,CAAC;AAEvB,SAASM,sBAAsB,EAAED,qBAAqB,QAAQ,mBAAmB;AACjF,SAASE,QAAQ,QAA0B,YAAY;AACvD,SAASC,QAAQ,QAAQ,qBAAqB;AAC9C,SAASC,kBAAkB,QAAQ,sBAAsB;AACzD,SAASC,aAAa,QAAQ,iBAAiB;AAC/C,SAASC,qBAAqB,QAAQ,yBAAyB;AAC/D,SAASC,4BAA4B,IAAIC,WAAW,QAAQ,iCAAiC;AAE7F,OAAM,SAAUV,WAAW,CAAIW,EAAW,EAAEC,iBAAsC;EAAtC;IAAAA,8BAAsC;EAAA;EAC9E,IAAI,YAAY,KAAKC,OAAO,CAACC,GAAG,CAACC,QAAQ,EAAE;IACvChB,aAAa,CACT,yIAAyI,CAC5I;;EAEL,OAAOE,mBAAmB,CAACU,EAAE,EAAEC,iBAAiB,CAAC;AACrD;AAEA,SAASI,iBAAiB,EAAElB,gBAAgB,QAAQ,0BAA0B;AAE9E,OAAM,SAAUmB,kBAAkB,CAACC,MAAe;EAC9C,IAAI,YAAY,KAAKL,OAAO,CAACC,GAAG,CAACC,QAAQ,EAAE;IACvCI,OAAO,CAACC,IAAI,CACR,2FAA2F,CAC9F;;EAELlB,qBAAqB,CAACgB,MAAM,CAAC;AACjC","names":["unstable_batchedUpdates","batch","observerBatching","useDeprecated","useObserver","useObserverOriginal","enableStaticRendering","isUsingStaticRendering","observer","Observer","useLocalObservable","useLocalStore","useAsObservableSource","resetCleanupScheduleForTests","clearTimers","fn","baseComponentName","process","env","NODE_ENV","isObserverBatched","useStaticRendering","enable","console","warn"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/mobx-react-lite/src/index.ts"],"sourcesContent":["import \"./utils/assertEnvironment\"\n\nimport { unstable_batchedUpdates as batch } from \"./utils/reactBatchedUpdates\"\nimport { observerBatching } from \"./utils/observerBatching\"\nimport { useDeprecated } from \"./utils/utils\"\nimport { useObserver as useObserverOriginal } from \"./useObserver\"\nimport { enableStaticRendering } from \"./staticRendering\"\n\nobserverBatching(batch)\n\nexport { isUsingStaticRendering, enableStaticRendering } from \"./staticRendering\"\nexport { observer, IObserverOptions } from \"./observer\"\nexport { Observer } from \"./ObserverComponent\"\nexport { useLocalObservable } from \"./useLocalObservable\"\nexport { useLocalStore } from \"./useLocalStore\"\nexport { useAsObservableSource } from \"./useAsObservableSource\"\nexport { resetCleanupScheduleForTests as clearTimers } from \"./utils/reactionCleanupTracking\"\n\nexport function useObserver<T>(fn: () => T, baseComponentName: string = \"observed\"): T {\n    if (\"production\" !== process.env.NODE_ENV) {\n        useDeprecated(\n            \"[mobx-react-lite] 'useObserver(fn)' is deprecated. Use `<Observer>{fn}</Observer>` instead, or wrap the entire component in `observer`.\"\n        )\n    }\n    return useObserverOriginal(fn, baseComponentName)\n}\n\nexport { isObserverBatched, observerBatching } from \"./utils/observerBatching\"\n\nexport function useStaticRendering(enable: boolean) {\n    if (\"production\" !== process.env.NODE_ENV) {\n        console.warn(\n            \"[mobx-react-lite] 'useStaticRendering' is deprecated, use 'enableStaticRendering' instead\"\n        )\n    }\n    enableStaticRendering(enable)\n}\n"]},"metadata":{},"sourceType":"module"}